<?php

class NCore_EventCallback
{
	protected $obj;
	protected $method;
	
	function __construct($obj, $method)
	{
		$this->obj = $obj;
		$this->method = $method;
	}
	
	public function call()
	{
		$args = func_get_args();
		return call_user_func_array(array($this->obj, $this->method), $args);
	}
}

?>